//
//  ShellCountryDataModel.m
//  ShellWallert
//
//  Created by lvzhao on 2019/10/16.
//  Copyright © 2019 VV. All rights reserved.
//

#import "ShellCountryDataModel.h"

@implementation ShellCountryDataModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{
             @"countryId":@"id"
             };
}

- (void)mj_keyValuesDidFinishConvertingToObject:(NSDictionary *)keyValues{
    
    NSInteger userCount = self.userCount;
    if (userCount < 100) {
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_1",(long)self.countryId];
    } else if ((100 <= userCount)  && (userCount < 2999)){
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_2",(long)self.countryId];
    } else if ((3000 <= userCount)  && (userCount < 7999)){
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_3",(long)self.countryId];
       
    } else if ((8000 <= userCount)  && (userCount < 19999)){
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_4",(long)self.countryId];
       
    } else if ((20000 <= userCount)  && (userCount < 49999)){
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_5",(long)self.countryId];
       
    } else {
        self.imageName = [NSString stringWithFormat:@"icon_map_%ld_6",(long)self.countryId];
    }
}










@end
